﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Setting_Flag.aspx.cs" Inherits="Easy.Web.Pages.EntityPages.Setting_Flag" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="/_css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="/_css/common.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="/_css/iconfont.css" />
    <script src="/_js/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script src="/_js/bootstrap.min.js" type="text/javascript"></script>
    <script src="/_js/json2.js" type="text/javascript"></script>
    <script type="text/javascript">
        function AlterFlagTitle() {
            

            $.ajax({
                url: "/Service/Entity/Setting_Flag.ashx",
                async: false,
                type: "post",
                dataType: "JSON",
                data: { "Prefix": $("#Prefix").val()
                },
                success: function (data, textStatus) {
                    if (data.Result == "0") {

                        window.location = "EntityListPage.aspx";

                    }
                    else {
                        alert(data.Remark);
                    }

                },
                error: function (data, textStatus) {
                    alert("错误");

                }

            });
        }
        function btn_return() {
            window.location = "EntityListPage.aspx";

        }
    </script>
    <style>
        .page-header{margin:15px;}
        .page-header+.btn-primary{margin:0px 15px 10px 5px;}
        .panel{margin:0px 15px;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="">
        <div class="row">
            <div class="col-lg-12">
                <h1 class="page-header">
                    标志位</h1>
                <button type='button' style="float: right" id='Button1' class='btn btn-primary ng-binding' onclick="btn_return();">
                    取消</button>
            </div>
            <!-- /.col-lg-12 -->
        </div>
        <!-- /.row -->
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-default">
                    <!-- /.panel-heading -->
                    <div class="panel-body">
                        <div class="form-group">
                            <label for="Prefix">
                                标志名称</label>
                            <input type="text" class="form-control" id="Prefix" />
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="button" class="btn btn-primary ng-binding" onclick="AlterFlagTitle();">
                                    保存</button>
                            </div>
                        </div>
                    </div>
                    <!-- /.panel-body -->
                </div>
                <!-- /.panel -->
            </div>
        </div>
    </div>
    </form>
</body>
</html>
